package com.jc.repository.generator.utils;

/**
 * @author wangli
 * @create 2016-12-07 10:18
 * @description 生成代码的配置信息, 默认全部生成, 不覆盖
 */

public class GenerateConfig {


    private GenerateMode mode;

    private GenerateIsCover isCover;

    public GenerateConfig() {
        this.mode = GenerateMode.全部生成;
        this.isCover = GenerateIsCover.不覆盖;
    }

    public GenerateConfig mode(GenerateMode mode) {
        this.mode = mode;
        return this;
    }

    public GenerateConfig isCover(GenerateIsCover isCover) {
        this.isCover = isCover;
        return this;
    }

    public GenerateMode getMode() {
        return mode;
    }

    public void setMode(GenerateMode mode) {
        this.mode = mode;
    }

    public GenerateIsCover getIsCover() {
        return isCover;
    }

    public void setIsCover(GenerateIsCover isCover) {
        this.isCover = isCover;
    }
}
